function searchRoleAutho(groupId, roleId, proMark) {
    return new Promise((resolve, reject) => {
        axios({
            method: 'get',
            url: '/amc/sys/autho/role/search/'+groupId+'/'+roleId+'/'+proMark,
            baseURL: 'http://127.0.0.1:8098',
            headers: {'authorization': layui.data('user').token}
        }).then((response)=>{
            let back = response.data
            resolve(back)
        }).catch(reason => {
            reject(reason)
        })
    });
}

function assignRU(groupId, roleId, proMark, auinfo) {
    return new Promise((resolve, reject) => {
        axios({
            method: 'post',
            url: '/amc/sys/autho/role/assign/'+groupId+'/'+roleId+'/'+proMark,
            baseURL: 'http://127.0.0.1:8098',
            headers: {'authorization': layui.data('user').token},
            data: auinfo
        }).then((response)=>{
            let back = response.data
            resolve(back)
        }).catch(reason => {
            reject(reason)
        })
    });
}